﻿using System.Collections.Generic;

namespace SqlMapper.SqlElements
{
    public class Select
    {
        public Select()
        {
            Statements = new List<BaseTag>();
        }

        public string Id { get; set; }
        public string Sql { get; set; }
        public string Prepend { get; set; }
        public IList<BaseTag> Statements { get; set; }

        public bool IsPrependAvailable
        {
            get
            {
                return (Prepend != null && Prepend.Length > 0);
            }
        }
    }
}
